<?php
class EmptyAction extends CommonAction {
	public function _empty(){
            $get=htmlspecialchars(trim($_GET['_URL_'][0]));
            //催收专区列表
            if(preg_match('/^trademark-/i',$get)){
                $url_param = substr($get,10);
                $url_param_arr = explode('-',$url_param);
                if(count($url_param_arr)){
                    $preg_match_arr = array('0','1','2','3','4','5','9');
                    $url_param_arr_num = count($url_param_arr);
                    foreach($url_param_arr as $k=>$v){
                        if(($k<($url_param_arr_num-1)) && !in_array($v,$preg_match_arr)){
                            $this->error_notice('您访问的页面不存在['.MODULE_NAME.'~'.ACTION_NAME.']');
                        }
                    }
                }
                R('Index/index',array($url_param_arr));
                exit;
            }
            //默认404
            $msg =  L('_MODULE_NOT_EXIST_').C('URL_PATHINFO_DEPR').MODULE_NAME.C('URL_PATHINFO_DEPR').ACTION_NAME;
            if(APP_DEBUG) {
                throw_exception($msg);
            }else{
                if(C('LOG_EXCEPTION_RECORD')) Log::write($msg);
                send_http_status(404);
            }
            $this->error_notice('您访问的页面不存在['.MODULE_NAME.'~'.ACTION_NAME.']');
	}
}
?>
